<?
	$_name = $params['name'];	// component name
	$_gparam = ($_gparam = component_settings($_name, 'gparam')) ? $_gparam : 'gallery'; // gallery URL param from the component settings
	$_param = ($_param = component_settings($_name, 'param')) ? $_param : 'id'; // image URL param from the component settings

	if ((int) param($_gparam))
		if ((int) param($_param))
			return '/gallery/show';
		else
			return '/gallery';
	else
		return '';

?>